<?php
class phongbs{
	private $MaPhong		= 0;
	private $LoaiPhong		= 0;
	private $LoaiGiuong		= 0;
	private $GiaPhong		= 0;
	private $TinhTrang		= 0;
	
	public function Them(){
		$db = new phongdb();
		$db->Them($this->MaPhong, $this->LoaiPhong, $this->LoaiGiuong, $this->GiaPhong, $this->TinhTrang);
	}
	
	public function Xoa(){
		$db = new phongdb();
		$db->Xoa($this->MaPhong);
	}
	
	public function CapNhatGia(){
		$db = new phongdb();
		$db->CapNhatGia($this->MaPhong, $this->GiaPhong);
	}
	
	public function CapNhat(){
		$db = new phongdb();
		$db->CapNhat($this->MaPhong, $this->TinhTrang);
	}
	
	public function LayDanhSach(){
		$db = new phongdb();
		$db->LayDanhSach($this->TinhTrang);
	}
}
?>